package com.zlll.winner.business.service.bbs;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.zlll.winner.business.model.bbs.BbsSubject;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 论坛频道话题表 服务类
 * </p>
 *
 * @author Walert
 * @since 2019-09-12
 */
public interface IBbsSubjectService extends IService<BbsSubject> {
    /**
     * 论坛话题分页列表
     * @param params
     * @return
     */
    Object fetchSubjectPage(JSONObject params);

    /**
     * 保存话题表数据
     * @param cityList
     * @param bbsSubject
     * @return
     */
    Object saveSubject(JSONArray cityList,BbsSubject bbsSubject);

    /**
     * 更新话题数据
     * @param cityList
     * @param bbsSubject
     * @return
     */
    Object updateSubject(JSONArray cityList,BbsSubject bbsSubject);

    /**
     * 根据position获取话题内容
     * @param position
     * @return
     */
    Object getSubjectInfoByPosition(String position,String city);
}
